﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace FisheryPlatform.Search.Core.Resource
{
    internal class CentralPathDirectoryResource : IResource
    {
        private string _path;

        public CentralPathDirectoryResource(string path)
        {
            _path = path;
        }

        public void Dispose()
        {
        }

        public TextReader GetStreamReader()
        {
            throw new NotSupportedException();
        }

        public TextReader GetStreamReader(Encoding encoding)
        {
            throw new NotSupportedException();
        }

        public IResource CreateRelative(string relativePath)
        {
            throw new NotSupportedException();
        }

        public string FileBasePath
        {
            get
            {
                return _path;
            }
        }
    }
}
